package com.ruiysoft.crm.controller;

/**
 * Created by liudh on 2018/9/6.
 */
public class T1 {
    public static void main(String[] args) {
        HttpHelper httpClient = new HttpHelper();
        try {
            String data = "{\"type\":\"exec\",\"mbean\":\"org.apache.camel:context=anrongcamel,type=context,name=\\\"anrongcamel\\\"\",\"operation\":\"dumpRoutesStatsAsXml\",\"arguments\":[true,true],\"config\":{}}";

            String rtn = httpClient.postData("http://192.168.1.155:8099/jolokia/?maxDepth=7&maxCollectionSize=50000&ignoreErrors=true&canonicalNaming=false", data);

            System.out.println(rtn);

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
